package com.zkyc.framework.common.pojo;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Right)实体类
 *
 * @author libingchuan
 * @since 2022-05-25 16:32:11
 */
@TableName("system_right")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Right implements Serializable {
    private static final long serialVersionUID = -10716213345059148L;
    /**
     * 权限id
     */
    private Integer id;
    /**
     * 页面名称
     */
    private String name;
    /**
     * 父级页面
     */
    private String rightParent;
    /**
     * 权限路由
     */
    private String rightUrl;
    /**
     * 顺序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;
    /**
     * 逻辑删除标志(0、未删除 1、已删除 )
     */
    @TableLogic //逻辑删除注解
    private Integer isDeleted;

    private Integer parentId;

    @TableField(exist = false)
    private List<Right> childRights;
}

